package com.ossjk.qlh.tgb.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ossjk.core.base.entity.BaseEntity;
import com.ossjk.core.system.annotation.OptionDictionary;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Copyright  Sat Jan 22 21:51:38 CST 2022 QLH. Tech Ltd. All rights reserved.
 * 
 * @Package: com.ossjk.qlh.projects
 * @ClassName: ActivityInfo
 * @Description: ActivityInfo-实体类
 * @author: chair
 * @date:  2022-01-22 21:51:39 
 */
@ApiModel(value = "活动商品信息")
@Data
public class ActivityInfo extends BaseEntity<ActivityInfo> {

	private static final long serialVersionUID = 1L;

	/**
	 * 活动id
	 */
	@ApiModelProperty(value = "活动id", required = true)
	@TableField("id")
	private String id;
	/**
	 * 商品id
	 */
	@ApiModelProperty(value = "商品id")
	@TableField("product_id")
	private String productId;
	/**
	 * 活动价格
	 */
	@ApiModelProperty(value = "活动价格")
	@TableField("price")
	private BigDecimal price;
	/**
	 * 开始时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "开始时间")
	@TableField("start_time")
	private Date startTime;
	/**
	 * 真实开始时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "真实开始时间")
	@TableField("real_time")
	private Date realTime;
	/**
	 * 状态：1-未开始，2-进行中，3-已结束
	 */
	@OptionDictionary(key = "activity-status")
	@ApiModelProperty(value = "状态：1-未开始，2-进行中，3-已结束")
	@TableField("status")
	private Integer status;
	/**
	 * 活动数量
	 */
	@ApiModelProperty(value = "活动数量")
	@TableField("sum")
	private Integer sum;
	/**
	 * 结束时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "结束时间")
	@TableField("end_time")
	private Date endTime;
	/**
	 * 活动类型
	 */
	@ApiModelProperty(value = "活动类型")
	@TableField("type")
	private String type;

	/**
	 * 商家id
	 */
	@ApiModelProperty(value = "商家id")
	@TableField("business_id")
	private String businessId;

	/**
	 * 参与人数
	 */
	@ApiModelProperty(value = "参与人数")
	@TableField("user_count")
	private Integer userCount;

	/**
	 * 是否删除
	 */
	@TableLogic
	@ApiModelProperty(value = "是否删除")
	@TableField("is_delete")
	private Integer isDelete;
	 
}
